﻿@using Fyp.Models;

@{
    ViewBag.Title = "Notification";

    Layout = "~/Shared/_layoutPage.cshtml";
    var PageTitle = "Notification";
    
    var list = (List<Notification>)ViewData["list"];
 }

@section title
{
    @PageTitle
}

<style>
table, td, th
{
border:1px solid green;
padding:2px;
}
th
{
background-color:green;
color:white;
padding:2px;
}
</style>
 
<form action="/Notification/Notification" class="background" method="post" style="margin-top: -21px; margin-bottom: 1px;">
    
    <strong>
            <div id="content" style="margin-left: 98px;margin-bottom: -29px;">
                 <h2 style="text-align: center;margin-top: 30px;">Notification List</h2> <br/>               
             </div>
    </strong>
    
    <table  style=" margin-left: 249px; margin-right: 139px;margin-bottom:12px;">
     <thead>
           <tr>
               <th>Notification Text</th>
               <th>Notification Sent</th>
               <th></th> 
           </tr>
       </thead>
       <tbody> 

     
         @foreach (var row in list)
         {
           <tr>
                   <td>@row.NText</td>
                   <td>@row.CurrentDate</td>
                   <td><a href='@Url.Action("MeetingScheduler", "MeetingScheduler", new { Id = @row.MeetingId})'><img src="~/Images/n2.png" title="Read Notification" style="margin-left: 3px;"/></a></td>
           </tr>
         }

        </tbody>
    </table>
</form>